Not able to use the Toggle Switch with if else conditions in swift ui